$white: #ffffff;
$blue: #00d6ff;
$red: #ea1159;
$green: #2ad078;
$bg: #0f1418;
$blueBg: rgba($blue, 0.05);
$borderColor: rgba($blue, 0.3);

$picPath: '../images/board/';

.bg-red {
	background-color: $red !important;
}
.bg-blue {
	background-color: $blue !important;
}
.bg-green {
	background-color: $green !important;
}
.color-red {
	color: $red !important;
}
.color-blue {
	color: $blue !important;
}
.color-green {
	color: $green !important;
}
.color-white {
	color: $white !important;
}

body {
	margin: 0;
	padding: 0;
	background-color: $bg;
	background-image: url($picPath + 'bg.png');
	background-size: 180px 180px;
}
.flex {
	display: flex;
	flex-direction: row;
}
.flex-row {
	flex-direction: row;
}
.flex-column {
	flex-direction: column;
}
.justify-content-center {
	justify-content: center;
}
.justify-content-space-between {
	justify-content: space-between;	
}
.justify-content-space-around {
	justify-content: space-around;
}
.align-items-center {
	align-items: center;
}
#board {
	* {
		padding: 0;
		margin: 0;
		text-decoration: none;
		list-style: none;
	}
	img {
		max-width: 100%;
	}
	.board-header {
		width: 100%;
		margin-bottom: 15px;
		.board-header-title {
			width: 100%;
		}
		.board-header-time {
			font-size: 20px;
			color: $blue;
			img {
				width: 24px;
				margin-right: 12px;
			}
		}
		.board-header-button {
			width: 120px;
			box-sizing: border-box;
			border: 1px solid $borderColor;
			border-right: none;
			line-height: 40px;
			font-size: 20px;
			color: $blue;
			background-color: $blueBg;
			text-align: center;
			&:last-child {
				border-right: 1px solid $borderColor;
			}
			&:hover {
				background-color: rgba($blue, 0.4);
			}
		}
	}
	.board-container {
		width: 100%;
		padding: 0 20px;
		box-sizing: border-box;
	}
	.border-main {
		// margin-bottom: 20px;
	}
	.board-col {
		height: 920px;
	}
	.board-col-1 {
		width: 28%;
	}
	.board-col-2 {
		width: 42%;
		margin-left: 1%;
		margin-right: 1%;
	}
	.board-corner-col {
		box-sizing: border-box;
		position: relative;
		border: 1px solid $borderColor;
		.board-corner-header {
			$height: 70px;
			height: $height;
			line-height: $height;
			font-size: 28px;
			color: $blue;
			background-color: $blueBg;
			&>span {
				margin-left: 24px;
			}
		}
		.board-corner-body {
			box-sizing: border-box;
			padding: 0 20px;
		}
		.corner {
			position: absolute;
			box-sizing: border-box;
			width: 14px;
			height: 14px;
			$border: 2px solid $blue;
			&.corner-top-left {
				left: -2px;
				top: -2px;
				border-top: $border;
				border-left: $border;
			}
			&.corner-top-right {
				right: -2px;
				top: -2px;
				border-top: $border;
				border-right: $border;
			}
			&.corner-bottom-right {
				right: -2px;
				bottom: -2px;
				border-bottom: $border;
				border-right: $border;
			}
			&.corner-bottom-left {
				left: -2px;
				bottom: -2px;
				border-bottom: $border;
				border-left: $border;
			}
		}
	}
	.board-chart {
		width: 100%;
		border-bottom: 1px solid $borderColor;
		box-sizing: border-box;
		&.no-border-bottom {
			border-bottom: none;
		}
		h3 {
			padding-top: 35px;
			margin: 0 auto 25px;
			font-size: 20px;
			color: $white;
			text-align: center;
			font-weight: normal;
		}
	}
}

#generalPublicSentiment {
	height: 230px;
	font-size: 14px;
	.circle-chart-content {
		width: 50%;
		color: $white;
		span {
			margin-top: 25px;
			display: block;
			text-align: center;
			font-size: 16px;
		}
	}
	.circle-chart-box {
		width: 118px;
		height: 118px;
		position: relative;
		margin: auto;
		p {
			font-size: 18px;
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
		}
	}
}

#personalPublicSentiment {
	height: 280px;
	color: rgba($white, .5);
	.legend-list {
		margin-bottom: 28px;
		.legend-item {
			$width: 14px;
			margin-right: 48px;
			font-size: $width;
			&>i {
				width: $width;
				height: $width;
				margin-right: 14px;
			}
			&:last-child {
				margin-right: 0;
			}
		}
	}
	.bar-list {
		.bar-item {
			width: 100%;
			margin-bottom: 15px;
			.bar-col-1 {
				width: 66px;
				text-align: center;
				font-size: 18px;
			}
			.bar-col-2 {
				flex: 1;
			}
			.bar-col-3 {
				width: 160px;
				text-align: center;
				font-size: 16px;
				.bar-split {
					margin: 0 5px;
				}
			}
			.bar-bg {
				margin: auto;
				width: 95%;
				height: 5px;
				position: relative;
				overflow: hidden;
				// background-color: rgba($white, .1);
				.bar {
					width: 0;
					height: 100%;
					position: absolute;
					top: 0;
					left: 0;
				}
			}
		}
	}
}

#mediaPublicSentiment {
	height: 340px;
	color: rgba($white, .5);
	.legend-list {
		margin-bottom: 28px;
		.legend-item {
			$width: 14px;
			margin-right: 48px;
			font-size: $width;
			&>i {
				width: $width;
				height: $width;
				margin-right: 14px;
			}
			&:last-child {
				margin-right: 0;
			}
		}
	}
	.bar-list {
		.bar-item {
			width: 100%;
			margin-bottom: 15px;
			.bar-col-1 {
				width: 66px;
				text-align: center;
				font-size: 18px;
			}
			.bar-col-2 {
				flex: 1;
			}
			.bar-col-3 {
				width: 160px;
				text-align: center;
				font-size: 16px;
				.bar-split {
					margin: 0 5px;
				}
			}
			.bar-bg {
				margin: auto;
				width: 95%;
				height: 5px;
				position: relative;
				overflow: hidden;
				// background-color: rgba($white, .1);
				.bar {
					width: 0;
					height: 100%;
					position: absolute;
					top: 0;
					left: 0;
				}
			}
		}
	}
}

#infoList {
	.info-item {
		width: 32%;
		height: 105px;
		color: $white;
		font-size: 18px;
		img {
			width: 36px;
			margin-right: 10px;
		}
		&>p {
			font-size: 36px;
			line-height: 40px;
			margin-bottom: 5px;
		}
		&.red {
			background-color: $red;
			background-image: linear-gradient(to right, $red, #ea1190);
		}
		&.green {
			background-color: $green;
			background-image: linear-gradient(to right, $green, #93d02a);
		}
		&.blue {
			background-color: $blue;
			background-image: linear-gradient(to right, $blue, #0099f0);
		}
	}
}

#chinaMap {
	width: 100%;
	margin-top: 45px;
	height: 467px;
	h2 {
		font-size: 30px;
		color: $blue;
		display: flex;
		align-items: center;
		font-weight: normal;
		&:before {
			content: '';
			display: block;
			width: 8px;
			height: 32px;
			background-color: $blue;
			margin-right: 10px;
		}
	}
	#chinaChart {
		width: 100%;
		height: 420px;
	}
}

#compareAnalysis {
	height: 303px;
}

#compareList {
	position: relative;
	&:after {
		position: absolute;
		left: 50%;
		top: 20px;
		content: '';
		display: block;
		width: 1px;
		height: 60px;
		background-color: $borderColor;
	}
	.compare-item {
		width: 50%;
		.compare-col {
			flex: 1;
			min-width: 33.3%;
		}
		.compare-header {
			height: 100px;
			color: $white;
			font-size: 20px;
			img {
				width: 88px;
			}
			span {
				margin-top: 10px;
			}
			.compare-vs {
				width: 64px;
			}
		}
		.compare-row {
			font-size: 18px;
			color: rgba($white, 0.5);
			height: 33px;
			background-color: $blueBg;
			&:nth-child(2n) {
				background-color: transparent;
			}
			span {
				color: $white;
			}
		}
	}
}

#generalKoubei {
	height: 230px;
	font-size: 14px;
	color: $white;
	.analysis-item {
		width: 50%;
		.analysis-value {
			color: rgba($white, .5);
			text-align: center;
			margin-bottom: 15px;
			.analysis-bold {
				font-size: 24px;
				color: $white;
			}
			.analysis-split {
				margin: 0 5px;
			}
		}
		.analysis-pic {
			width: 64px;
			height: 64px;
			margin-bottom: 15px;
		}
	}
}

#koubeiMark {
	height: 280px;
	.mark-item {
		width: 33%;
		color: rgba($white, 0.5);
		$width: 96px;
		$borderWidth: 20px;
		$entityWidth: $width - $borderWidth;
		.mark {
			width: $width;
			height: $width;
			position: relative;
			margin: 0 auto 10px;
			.ring {
				position: absolute;
				left: -$borderWidth;
				top: -$borderWidth;
				width: 100%;
				height: 100%;
				border-top: $borderWidth solid $blue;
				border-right: $borderWidth solid $green;
				border-bottom: $borderWidth solid transparent;
				border-left: $borderWidth solid $red;
				border-radius: 50%;
			}
			.pointer {
				width: $width / 2;
				height: 2px;
				background-color: transparent;
				position: absolute;
				top: 50%;
				left: 0%;
				transform: rotate(-45deg);
				transform-origin: 100% 0;
				&:before {
					content: '';
					display: block;
					width: $borderWidth + 2;
					height: 2px;
					background-color: $white;
					position: absolute;
					top: 0;
					left: -($borderWidth + 1);
				}
			}
			.mark-entity {
				width: $entityWidth;
				height: $entityWidth;
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
				text-align: center;
				border: 1px solid rgba($white, .1);
				border-radius: 50%;
				.mark-score {
					font-size: $width / 4;
					line-height: $width / 3;
					color: $white;
				}
				.mark-title {
					font-size: 12px;
				}
			}
		}
		.mark-label {
			font-size: 16px;
			color: $white;
			margin-bottom: 5px;
		}
		.mark-info {
			font-size: 14px;
		}
	}
}

#koubeiScore {
	.radar-list {
		width: 100%;
		.radar-item {
			width: 33%;
			color: $white;
			text-align: center;
			.radar {
				width: 170px;
				height: 170px;
				margin-bottom: 10px;
			}
		}
	}
}

#seriesKoubei {
	width: 100%;
	height: 630px;
	position: relative;
	h3 {
		width: 100%;
		font-size: 20px;
	    color: $white;
	    text-align: center;
	    font-weight: normal;
	    position: absolute;
	    top: 0;
	    left: 0;
	    &.seriesKoubeiMarkTitle {
	    	top: 34px;
		}
		&.seriesKoubeiScoreTitle {
			top: 322px;	
		}
	}
	.split {
		border-top: 1px solid $borderColor;
		position: absolute;
		left: 20px;
		right: 20px;
		top: 279px;
		box-sizing: border-box;
	}
}

#seriesKoubeiChart {
	.mark-container {
		box-sizing: border-box;
		padding-top: 80px;
		height: 280px;
		color: rgba($white, 0.5);
		$width: 96px;
		$borderWidth: 20px;
		$entityWidth: $width - $borderWidth;
		.mark {
			width: $width;
			height: $width;
			position: relative;
			margin: 0 auto 10px;
			.ring {
				position: absolute;
				left: -$borderWidth;
				top: -$borderWidth;
				width: 100%;
				height: 100%;
				border-top: $borderWidth solid $blue;
				border-right: $borderWidth solid $green;
				border-bottom: $borderWidth solid transparent;
				border-left: $borderWidth solid $red;
				border-radius: 50%;
			}
			.pointer {
				width: $width / 2;
				height: 2px;
				background-color: transparent;
				position: absolute;
				top: 50%;
				left: 0%;
				transform: rotate(-45deg);
				transform-origin: 100% 0;
				&:before {
					content: '';
					display: block;
					width: $borderWidth + 2;
					height: 2px;
					background-color: $white;
					position: absolute;
					top: 0;
					left: -($borderWidth + 1);
				}
			}
			.mark-entity {
				width: $entityWidth;
				height: $entityWidth;
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
				text-align: center;
				border: 1px solid rgba($white, .1);
				border-radius: 50%;
				.mark-score {
					font-size: $width / 4;
					line-height: $width / 3;
					color: $white;
				}
				.mark-title {
					font-size: 12px;
				}
			}
		}
		.mark-label {
			font-size: 16px;
			color: $white;
			margin-bottom: 5px;
		}
		.mark-info {
			font-size: 14px;
		}
	}
	.radar-container {
		box-sizing: border-box;
		padding-top: 100px;
		color: $white;
		.radar {
			width: 170px;
			height: 170px;
			margin-bottom: 10px;
		}
	}
}

@media screen and (min-width: 2561px) {
	#board {
		.board-container {
			padding: 0 30px;
		}
		.board-col {
			height: 1840px;
		}
		.board-corner-col {
			.board-corner-header {
				height: 140px;
				line-height: 140px;
				font-size: 56px;
			}
		}
		.board-chart {
			h3 {
				padding-top: 70px;
			    margin: 0 auto 50px;
				font-size: 40px;
			}
		}
		.board-header {
			.board-header-button {
				width: 240px;
			    line-height: 80px;
				font-size: 40px;
			}
			.board-header-time {
				font-size: 40px;
			}
		}
	}
	#generalPublicSentiment {
		height: 460px;
		.circle-chart-box {
			width: 236px;
			height: 236px;
			svg {
				width: 236px;
				height: 236px;
			}
			p {
				font-size: 36px;
			}
		}
		.circle-chart-content {
			span {
				font-size: 32px;
				margin-top: 50px;
			}
		}
	}
	#personalPublicSentiment {
		height: 560px;
	}
	#mediaPublicSentiment {
		height: 680px;
	}
	#personalPublicSentiment,
	#mediaPublicSentiment {
		.legend-list {
			margin-bottom: 56px;
			.legend-item {
				font-size: 28px;
				&>i {
				    width: 28px;
				    height: 28px;
				    margin-right: 28px;
				}
			}
		}
		.bar-list {
			.bar-item {
				margin-bottom: 30px;
				.bar-col-1 {
					width: 132px;
					font-size: 30px;
				}
				.bar-bg {
					height: 10px;
				}
				.bar-col-3 {
					width: 320px;
					font-size: 28px;
				}
			}
		}
	}
	#infoList {
		.info-item {
			height: 210px;
			font-size: 32px;
			&>p {
				font-size: 64px;
			    line-height: 72px;
		        margin-bottom: 10px;
			}
			img {
				width: 72px;
			}
		}
	}
	#chinaMap {
		margin-top: 90px;
		height: 934px;
		#chinaChart {
			height: 840px;
		}
	}
	#compareAnalysis {
		height: 606px;
	}
	#compareList {
		.compare-item {
			.compare-header {
				height: 200px;
				font-size: 40px;
				img {
					width: 176px;
				}
				span {
					margin-top: 20px;
				}
				.compare-vs {
					width: 128px;
				}
			}
			.compare-row {
				font-size: 36px;
				height: 66px;
			}
		}
	}
	#generalKoubei {
		height: 460px;
		.analysis-item {
			font-size: 28px;
			.analysis-value {
				margin-bottom: 30px;
				.analysis-bold {
					font-size: 48px;
				}
			}
			.analysis-pic {
				width: 128px;
				height: 128px;
				margin-bottom: 30px;
			}
		}
	}
	#seriesKoubei {
		height: 1260px;
		h3 {
			font-size: 40px;
			&.seriesKoubeiMarkTitle {
				top: 68px;
			}
			&.seriesKoubeiScoreTitle {
				top: 644px;
			}
		}
		.split {
			top: 558px;
		}
	}
	#seriesKoubeiChart {
		.mark-container {
			padding-top: 160px;
			height: 560px;
			.mark {
			    width: 192px;
			    height: 192px;
			    margin: 0 auto 20px;
				.mark-entity {
				    width: 152px;
				    height: 152px;
					.mark-score {
						font-size: 48px;
						line-height: 64px;
					}
					.mark-title {
						font-size: 24px;
					}
				}
				.ring {
					left: -40px;
				    top: -40px;
				    border-top: 40px solid $blue;
				    border-right: 40px solid $green;
				    border-bottom: 40px solid transparent;
				    border-left: 40px solid $red;
				}
				.pointer {
					width: 96px;
				    height: 4px;
				    &:before {
			    	    width: 44px;
					    height: 4px;
					    left: -42px;
				    }
				}
			}
			.mark-label {
				font-size: 32px;
			}
			.mark-info {
				font-size: 28px;
			}
		}
		.radar-container {
			padding-top: 200px;
			font-size: 28px;
			.radar {
			    width: 340px;
			    height: 340px;
			    margin-bottom: 20px;
			}
		}
	}
}

@media screen and (min-width: 1921px)  and (max-width: 2560px) {
   #board {
		.board-col {
			height: 1104px;
		}
	}
	#generalPublicSentiment,
	#generalKoubei {
		height: 276px;
	}
	#personalPublicSentiment {
		height: 336px;
	}
	#seriesKoubeiChart {
		.mark-container {
			height: 336px;
		}
	}
	#seriesKoubei {
		.split {
			top: 335px;
		}
		h3.seriesKoubeiScoreTitle {
			top: 385px;
		}
	}
	#chinaMap {
		height: 651px;
		#chinaChart {
			height: 600px;
		}
	}
}

@media screen and (max-width: 1920px) {
	#board {
		.board-container {
			padding: 0 15px;
		}
	}
}

@media screen and (max-width: 1366px) {
	#board {
		.board-container {
			padding: 0 10px;
		}
	}
	#personalPublicSentimentChart,
	#mediaPublicSentimentChart {
		.legend-list { 
			.legend-item {
				font-size: 12px;
			}
		}
		.bar-list {
			.bar-item {
				.bar-col-1 {
					width: 40px;
					font-size: 13px;
				}
				.bar-col-3 {
					width: 150px;
					font-size: 12px;
				}
			}
		}
	}
	#compareList {
		.compare-item {
			.compare-header {
				font-size: 15px;
				img {
					width: 70px;
				}
				.compare-vs {
					width: 50px;
				}
			}
			.compare-row {
				font-size: 13px;
			}
		}
	}
	#infoList {
		.info-item {
			font-size: 16px;
			img {
				width: 32px;
				margin-right: 8px;
			}
		}
	}
}

.mitsubishi-loading {
	position: relative !important;
}

.rotate {
	animation: rotate360 1s infinite linear;
}

@keyframes rotate360 {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
